﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Types;

namespace Client
{
    public partial class AddQuestionForm : Form
    {
        private string username { get; set; }
        private CourseType course { get; set; }

        public AddQuestionForm(CourseType course, string username)
        {
            InitializeComponent();
            this.username = username;
            this.course = course;
        }

        private void submitButton_Click(object sender, EventArgs e)
        {
            ClientManager.Instance.AddNewQuestion(0, questionTextBox.Text, "", username, course.id);
            this.Close();
        }
    }
}
